<?php
namespace app\yiluqianxing\home;

use think\Controller;
use think\Db;
use think\Request;
//用户相关
class Xiaochengxuuser extends Controller{

    //获取用户详情
    function getuserinf($openid,$js=true){
        $data=Db::table('dp_ylqx_user')
            ->where('openid',$openid)
            ->find();
        if ($js){
            echo json_encode($data);
        }else{
            return $data;
        }
    }

}